<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登陆 - 综合管理平台 - 图银 </title>

<link href="/css/main.css" rel="stylesheet" type="text/css" />

</head>
<body>


<div class="login">
<div class="box png">
<div class="logo png"></div>
<div class="input">
<div class="log">
<div class="name">
<label>用户名</label>
<input type="text" class="text" id="value_1" placeholder="用户名" name="name" tabindex="1">
</div>
<div class="pwd">
<label>密　码</label>
<input type="password" class="text" id="value_2" placeholder="密码" name="passwd" tabindex="2">
<input type="button" class="submit" tabindex="3" value="登录">
<div class="check"></div>
</div>
<div class="tip"></div>
</div>
</div>
</div>
<div class="air-balloon ab-1 png"></div>
<div class="air-balloon ab-2 png"></div>
<div class="footer"></div>
</div>

<script type="text/javascript" src="/js/jQuery.js"></script>
<script type="text/javascript" src="/js/fun.base.js"></script>
<script type="text/javascript" src="/js/script.js"></script>
<script type="text/javascript">
$(".submit").bind("click",function(){
	var name,pass;
	name = $("#value_1").val();
	pass = $("#value_2").val();
	if(name=='') {
		alert('用户名不能为空');
		$("#value_1").focus();
		return false;
		
	}
	if(pass=='') {
		alert('密码不能为空');
		$("#value_2").focus();
		return false;
	}
	$.post("/login/checkuser",{name:name,passwd:pass},function(re){
		if(re=="200") {
			location.href="/image";
		}else{
			alert('账户或密码错误！');
		}
	});
});
</script>
</body>
</html>